/*
 * Copyright (c) JiaChaoYang 2023-7-27 MongoPlus版权所有
 * 适度编码益脑，沉迷编码伤身，合理安排时间，享受快乐生活。
 * email: j15030047216@163.com
 * phone: 15030047216
 * weChat: JiaChaoYang_
 */

package com.mongo.plus.demo.service;


import com.anwen.mongo.service.IService;
import com.mongo.plus.demo.entity.User;
import com.mongodb.MongoCommandException;
import org.springframework.dao.OptimisticLockingFailureException;


/**
 * @Description:
 * @BelongsProject: mongo-plus-demo
 * @Version: 1.0
 */
public interface UserService {

    void test();

    void test2();

    Boolean updateUserWithRetryById(User user)throws OptimisticLockingFailureException, MongoCommandException; // 显式声明异常;

//    public Object mongoCommandException(MongoCommandException mongoCommandException);
//    public Object optimisticLockingFailureException(OptimisticLockingFailureException mongoCommandException, User user);
}
